package cn.zifangsky.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.zifangsky.repository.entity.License;
import cn.zifangsky.repository.mybatis.itf.license.LicenseMapper;
import cn.zifangsky.service.itf.LicenseService;

/**
 * <p>
 * 授权文件表 服务实现类
 * </p>
 *
 * @author swq
 * @since 2022-02-25
 */
@Service("licenseService")
public class LicenseServiceImpl implements LicenseService {

	@Autowired
	private LicenseMapper licenseMapper;

	@Override
	public License getOne(String licenseStatus) {
		return licenseMapper.getOne(licenseStatus);
	}

	@Override
	public List<License> listCode(String code) {
		return licenseMapper.listCode(code);
	}

	@Override
	public void updateByIdLic(License one) {
		licenseMapper.updateByIdLic(one);
	}

	@Override
	public void saveLic(License one) {
		licenseMapper.saveLic(one);

	}

	@Override
	public List<License> list() {
		// TODO Auto-generated method stub
		return licenseMapper.listCode(null);
	}

}